﻿body{
    background-size: 100% auto;
    margin:0 auto;
    padding:0;
}
#div_top {
    display: none !important;
    margin:0 auto;
    opacity: 0!important;
}
#div_top img{
    width:320px;
    height:105px;
}
#div_msg{
    background-size:contain;
}

/* layout */
.container {
    width: 100%;
    padding: 0;
    margin:0 auto;
}
.yfc-logo {
    position: absolute;
    top: 165px;
    left: 50%;
    width: 124px;
    margin-left: -62px;
}
#div_top {
    width: 100%;
    height: 105px;
    margin: 0 auto;
    text-align: center;
}

#div_mid {
    display: none !important;
    position: relative;
    z-index: 3;
    width: 280px;
    margin: -30px auto 0;
}
#div_mid a{
    display: block;
    width:100%;
}

#div_buttom {
    position: relative;
    display:none;
    z-index: 4;
    width: 320px;
    margin: 145px auto 0;
    height: 102px;
    text-align: center;
    background-size: cover;
}

#prize {
    top: 155px;
    left: 50%;
    margin-left: -160px;
    position: absolute;
    width:320px;
    height:355px;
}

#div_msg {
    position: absolute;
    top: 110px;
    left:50%;
    width: 260px;
    height: 30px;
    margin-left:-130px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}
#div_msg span{display:block;}


#div_msg #comMsg {
    font-size: 16px;
    display: none;
}

#div_button {
    padding-top: 58px;
    display: none;
}

#open {
    display: block;
    margin: 0 auto;
    width:58px;
    height:49px;
    background: url(http://img.wx.xiao-bo.com/z/act/2015-040506/nhyfc/06/sao_tip.png) no-repeat;
    background-size: contain;
    color:rgba(0,0,0,0);
    -webkit-animation: bs 1s linear infinite;
}
@-webkit-keyframes bs{
    0%{
        -webkit-transform:scale(1);
    }
    50%{
        -webkit-transform:scale(1.3);
    }
    100%{
        -webkit-transform:scale(1);
    }
}

#intr {
    position: relative;
    z-index: 5;
    width: 288px;
    margin: 10px auto 0;
    text-align: center;
}
#intr p{
    margin:0 auto;
}
#intr .color-b-img{
    display: block;
    color: #fff;
    width: 250px;
    height: 50px;
    margin: 0 auto;
    background: url(http://img.wx.xiao-bo.com/z/act/2015-040506/nhyfc/06/sao_btn_bg.png) no-repeat;
    background-size: cover;
}
.ex-tips{
    width:280px;
    margin:10px auto 0;
    text-align: center;
    font-size:14px;
    color:#fff;
}
/*宝箱*/
.blk-b-1 {
    background-color: #dd1448;
}
.blk-b-2 {
    background-color: #1f5bcd;
}
.color-b-1 {
    color: #fff!important;
    background-color: #a40000!important;
}
.color-b-2 {
    color: #fff!important;
    background-color: #dd1448!important;
    border-bottom: 5px solid #9d092f!important;
}
.color-c-1 {
    color: #fde111;
}
.box-c-1 {
    background-color: #dd1448;
}
.box-c-2 {
    background-color: #0a3277;
}

.block {
    display: inline-block;
    padding: 5px 8px;
    color: #fde111;
    border-radius: .325em;
}

.box {
    position: relative;
    z-index: 2;
    width: 280px;
    margin: 20px auto;
    padding: 10px;
    border-radius: 6px;
}
.box.box-c-1{
    text-align: center;
}
.box-param{
    margin:10px 0;
    text-align:center;
    font-size:10px;
    line-height: 15px;
}
.box-param .h2{
    text-align:center;
    font-size:18px;
    line-height:26px;
    font-weight:700;
}

.param {
    display:none;
    position: relative;
    z-index: 2;
    text-align: center;
}

.ex-param {
    text-align: left;
    width: 280px;
    margin: 0 auto;
}


/* 宝箱 */
.mm-chest {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height:100%;
    margin: 0px auto 0px;
    z-index: 1;
    overflow:hidden;
  
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgba(0,0,0,0.8);
}
.mm-chest .chest-light{
    position: absolute;
    z-index: -1;
   /* background:url(http://img.wx.xiao-bo.com/chimelong/201505/gpcj_light.png) 0px 0px no-repeat;*/
    background-size: 300px auto;
    width: 300px;
    height: 300px;
    left: 50%;
    margin-left: -155px;
    top: -95px;
    -webkit-animation: rotate 10s infinite linear;
}
.mm-chest .chest-close {
    position: relative;
    width: 320px;
    height: 165px;
    opacity: 0;
    z-index: 1;
    margin: 0 auto;
}
.mm-chest .chest-close.big .chest{
    /*-webkit-animation:bigs 1.2s linear infinite;*/
}
.mm-chest .chest-close.shake{
    -webkit-animation:shake 1.2s linear infinite;
}
.mm-chest .chest-close.shake-move{
    -webkit-animation:shake-move 1s linear;
    -webkit-animation-fill-mode:forwards;
}
.mm-chest .chest-close .chest {
    position: absolute;
    width: 320px;
    height: 135px;
    background: url(img/treasure-box-min.png) no-repeat 0px 0px;
    background-size: 320px auto;
    left: 0;
    top: 0;
    z-index:2;
}
.mm-chest .chest-close .tips,.chest-txt{
    position:absolute;
    bottom: -10px;
    left: 0px;
    width: 100%;
    height:auto;
    z-index:1;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.mm-chest .chest-open {
    position: relative;
    width: 320px;
    height: 170px;
    margin: 0 auto;
    background: url(http://img.wx.xiao-bo.com/chimelong/201505/treasure-box-min.png) no-repeat 0px -157px;
    background-size: 320px auto;
    opacity: 0;
    z-index: 1;
}
.mm-chest .chest-open .mm-chest-cont {
    position: absolute;
    top: 0px;
    left: 50%;
    margin-left: -70px;
    width: 135px;
    height: 111px;
}
.mm-chest .chest-open .mm-chest-cont img{
    width: 100%;
}
.mm-chest .chest-open.show{
   /* -webkit-animation:move2 .2s .0s linear;
    -webkit-animation-fill-mode: forwards;*/
}
.mm-chest .show {
    z-index: 2;
    opacity: 1;
}
/* 动画 */
@-webkit-keyframes rotate {
    0% {
        -webkit-transform:rotate(0deg);
    }
    100% {
        -webkit-transform:rotate(360deg);
    }
}

@-webkit-keyframes bigs {
    0% {
        -webkit-transform:scale3d(.8, .8, .8);
    }
    50%{
        -webkit-transform:scale3d(1, 1, 1);
    }
    100% {
        -webkit-transform:scale3d(.8, .8, .8);
    }
}

@-webkit-keyframes tip1 {
    0% {
        -webkit-transform:scale3d(1, 1, 1);
    }
    50%{
        -webkit-transform:scale3d(1.2, 1.2, 1.2);
    }
    100% {
        -webkit-transform:scale3d(1, 1, 1);
    }
}

@-webkit-keyframes tip2 {
    0% {
        -webkit-transform:scale3d(.6, .6, .6);
    }
    50%{
        -webkit-transform:scale3d(1, 1, 1);
    }
    100% {
        -webkit-transform:scale3d(.8, .8, .8);
    }
}
@-webkit-keyframes move {
    0% {
        -webkit-transform:translate(0px ,0px);
    }
    100% {
        -webkit-transform:translate(0px ,-5px);
    }
}
@-webkit-keyframes move2 {
    0% {
       -webkit-transform:translate(0px,30px);
       opacity: 0;
    }
    70% {
       -webkit-transform:translate(0px,-20px);
       opacity: 1;
    }
    100% {
       -webkit-transform:translate(0px,0px);
       opacity: 1;
    }
}
@-webkit-keyframes shake {
  0% {
    transform: scale(1);
    -webkit-transform: scale3d(1, 1, 1);
    
  }
  6%{
    -webkit-transform: scale(.9) rotate(-8deg);
    -webkit-transform: scale3d(1, 1, 1) rotate(0, 0, 1, -8deg);
  }
  18%, 30%,42%{
    -webkit-transform: scale(1.1) rotate(8deg);
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 8deg);
    
  }
  12%,24%, 36%,48%{
    -webkit-transform: scale(1.1) rotate(-8deg);
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -8deg);
    
  }
  54%{
    -webkit-transform: scale(1);
    -webkit-transform: scale3d(1, 1, 1);
  }
  60%{
    -webkit-transform: scale(1);
    -webkit-transform: scale3d(1, 1, 1);
  }
  100% {
    -webkit-transform: scale(1);
    -webkit-transform: scale3d(1, 1, 1);
  }
}

@-webkit-keyframes shake1{
  0%{
    -webkit-transform: scale(.9) rotate(-8deg);
    -webkit-transform: scale3d(1, 1, 1) rotate(0, 0, 1, -8deg);
  }
  50%{
    -webkit-transform: scale(1.1) rotate(8deg);
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 8deg);
    
  }
  100%{
    -webkit-transform: scale(1.1) rotate(-8deg);
    -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -8deg);
    
  }
}

@-webkit-keyframes shake-move{
    0%{
        -webkit-transform: scale3d(1, 1, 1) translate3d(0px,0px,0);
    }
    80%{
        -webkit-transform: scale3d(1, 1, 1) translate3d(0px,50px,0);
    }
    90%{
        -webkit-transform: scale3d(1, 1, 1) translate3d(0px,50px,0);
    }
    100%{
        -webkit-transform: scale3d(1, 1, 1) translate3d(0px,50px,0);
    }
}

.btn-wrap,.btn{
    position: relative;
    width:280px;
    margin:20px auto;
    z-index: 3;
}
/*sss*/
.ht{ background:url(http://img.wx.xiao-bo.com/z/act/2015-040506/chimelong/sao_a_zj_1.png)repeat top center !important;}
.hz{background:url(http://img.wx.xiao-bo.com/z/act/2015-040506/chimelong/sao_a_mzj_1.png)repeat top center !important}